<?php
	/*ini_set("display_errors","1");
	error_reporting(E_ALL);*/
	require_once("cClientePhone.php");	
	$dealerId = $_REQUEST['aliasId'];	
	$selectDealer = $_REQUEST['selectDealer'];
	$arrayCTA = explode("|",$selectDealer); //esFlota|tablaId
	
	//redireccion
	$newObjetivo = '2'; //movil
	$locationByType = "movilCell.php";
	if($arrayCTA[0]==1){ 
		$newObjetivo = '3'; //flota
		$locationByType = "flotaCell.php";
	}
	//Params	
   	$params = "?tablaId=" . $arrayCTA[1]."&objetivo=".$newObjetivo."&dealerId=".$dealerId;

	header("Location: " . $locationByType . $params);
?>
